package com.neusoft.data.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天记录对象 ser_chat_history
 * 
 * @author slh
 * @date 2024-03-14
 */
public class SerChatHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 聊天id */
    private Long chatId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String realName;

    /** 会话id */
    @Excel(name = "会话id")
    private String sessionId;

    /** 用户问题 */
    @Excel(name = "用户问题")
    private String userMsg;

    /** 服务器回答 */
    @Excel(name = "服务器回答")
    private String serviceMsg;

    /** 问题来源 0 推荐问题 1 个性问题 2 选择的问题 */
    @Excel(name = "问题来源 0 推荐问题 1 个性问题 2 选择的问题")
    private String useFrom;

    /** 会话来源 0 推荐问题 1 课程表 2 大模型 */
    @Excel(name = "会话来源 0 推荐问题 1 课程表 2 大模型")
    private String msgFrom;

    public void setChatId(Long chatId) 
    {
        this.chatId = chatId;
    }

    public Long getChatId() 
    {
        return chatId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }
    public void setSessionId(String sessionId) 
    {
        this.sessionId = sessionId;
    }

    public String getSessionId() 
    {
        return sessionId;
    }
    public void setUserMsg(String userMsg) 
    {
        this.userMsg = userMsg;
    }

    public String getUserMsg() 
    {
        return userMsg;
    }
    public void setServiceMsg(String serviceMsg) 
    {
        this.serviceMsg = serviceMsg;
    }

    public String getServiceMsg() 
    {
        return serviceMsg;
    }
    public void setUseFrom(String useFrom) 
    {
        this.useFrom = useFrom;
    }

    public String getUseFrom() 
    {
        return useFrom;
    }
    public void setMsgFrom(String msgFrom) 
    {
        this.msgFrom = msgFrom;
    }

    public String getMsgFrom() 
    {
        return msgFrom;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chatId", getChatId())
            .append("userId", getUserId())
            .append("realName", getRealName())
            .append("sessionId", getSessionId())
            .append("userMsg", getUserMsg())
            .append("serviceMsg", getServiceMsg())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("useFrom", getUseFrom())
            .append("msgFrom", getMsgFrom())
            .toString();
    }
}
